cmake_minimum_required(VERSION 3.0)

project(MAT)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_BUILD_TYPE Debug)

find_package(OpenCV REQUIRED)
if(OpenCV_FOUND)
    message(STATUS "OpenCV library status:")
    message(STATUS "       version: ${OpenCV_VERSION}")
    message(STATUS "       libraries: ${OpenCV_LIBS}")
    message(STATUS "       include path: ${OpenCV_INCLUDE_DIRS}")
else()
    message(STATUS "OpenCV library is not found")
endif()


# include_directories(${CMAKE_SOURCE_DIR}/inc)

add_executable(MAT main.cpp)
# 添加头文件
target_include_directories(MAT PRIVATE ${OpenCV_INCLUDE_DIRS})
# 添加链接库
target_link_libraries(MAT PRIVATE ${OpenCV_LIBS})

    






